Skip to content

[#162] TodoInfoSheetView에 생성일, 완료일을 보여주도록 추가한다#167

Merged
opficdev merged 3 commits intodevelopfrom
feat/#162-TodoDetailContentView-createdAt
Mar 3, 2026
Merged

[#162] TodoInfoSheetView에 생성일, 완료일을 보여주도록 추가한다#167
opficdev merged 3 commits intodevelopfrom
feat/#162-TodoDetailContentView-createdAt

Conversation

@opficdev
Copy link
Owner

@opficdev opficdev commented Mar 3, 2026

@opficdev opficdev self-assigned this Mar 3, 2026
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

이 PR은 TodoInfoSheetView의 정보 표시 기능을 확장하여 사용자가 할 일의 생성일과 완료일을 한눈에 확인할 수 있도록 개선합니다. 이는 할 일의 생명주기에 대한 더 명확한 이해를 돕고, 사용자 경험을 향상시키는 데 기여합니다.

Highlights

  • TodoInfoSheetView 기능 확장: TodoInfoSheetView에 할 일의 생성일과 완료일을 표시하는 기능이 추가되었습니다.
  • UI 업데이트: 생성일과 완료일을 시각적으로 구분하기 위해 각각 파란색과 초록색 배경의 태그 형태로 표시됩니다.
  • 데이터 전달 로직 개선: TodoDetailView와 ProfileView에서 TodoInfoSheetView를 호출할 때, 생성일과 완료일 데이터를 함께 전달하도록 수정되었습니다.
  • 로컬라이제이션 추가: 새로운 UI 요소에 필요한 '생성일'과 '완료 시점'에 대한 로컬라이제이션 문자열이 추가되었습니다.
Changelog
  • DevLog/Resource/Localizable.xcstrings
    • 새로운 로컬라이제이션 키 '생성일'이 추가되었습니다.
    • 새로운 로컬라이제이션 키 '완료 시점'이 추가되었습니다.
  • DevLog/UI/Common/TodoInfoSheetView.swift
    • createdAt 및 completedAt 속성이 추가되었습니다.
    • 생성일을 표시하는 UI 요소가 추가되었으며, 파란색 배경으로 시각화되었습니다.
    • 완료일을 표시하는 UI 요소가 추가되었으며, 초록색 배경으로 시각화되었습니다. 완료되지 않은 경우 '완료하지 않음'으로 표시됩니다.
  • DevLog/UI/Home/TodoDetailView.swift
    • sheetContent에서 TodoInfoSheetView를 초기화할 때 createdAt과 completedAt을 전달하도록 수정되었습니다.
    • TodoInfoSheetView 호출이 todo 객체의 존재 여부에 따라 조건부로 실행되도록 변경되었습니다.
  • DevLog/UI/Profile/ProfileView.swift
    • infoSheetContent에서 TodoInfoSheetView를 초기화할 때 createdAt과 completedAt을 전달하도록 수정되었습니다.
Activity
  • 이 PR에 대한 기록된 활동이 없습니다.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

안녕하세요. Todo 정보 시트에 생성일과 완료일을 추가하는 변경사항을 잘 확인했습니다. 기능적으로는 올바르게 동작하는 것으로 보이지만, TodoInfoSheetView에서 몇 가지 개선할 점이 보입니다. 특히, 반복되는 UI 코드를 재사용 가능한 컴포넌트로 추출하고, 하드코딩된 문자열을 지역화하며, 스타일을 일관성 있게 적용하면 코드의 유지보수성과 품질을 더욱 높일 수 있을 것입니다. 자세한 내용은 각 파일에 남긴 주석을 참고해주세요.

Comment on lines +25 to +36
HStack(spacing: 8) {
Image(systemName: "calendar")
.foregroundStyle(.white)
Text(createdAt.formatted(date: .abbreviated, time: .omitted))
Spacer()
}
.padding(.vertical, 10)
.padding(.horizontal, 12)
.background(
RoundedRectangle(cornerRadius: 12)
.fill(.blue)
)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

생성일(createdAt)을 표시하는 부분의 스타일링에 몇 가지 개선점이 있습니다.

  1. 텍스트 색상: Image에는 .foregroundStyle(.white)가 적용되었지만, 날짜를 표시하는 Text에는 적용되지 않았습니다. 파란색 배경 위에 기본 텍스트 색상이 표시되면 가독성이 떨어질 수 있으므로, Text에도 .foregroundStyle(.white)를 추가하여 일관성을 맞추는 것이 좋습니다.
  2. 하드코딩된 색상: 배경색으로 .fill(.blue)가 하드코딩되어 있습니다. '마감일' 섹션에서 Color(.tertiarySystemFill)을 사용한 것처럼, 다크 모드 등 다양한 환경에 더 잘 대응할 수 있는 시맨틱 컬러(Semantic Color)를 사용하거나 Asset에 색상을 정의하여 사용하는 것을 권장합니다. .fill(.green)(81행)도 마찬가지입니다.
Suggested change
HStack(spacing: 8) {
Image(systemName: "calendar")
.foregroundStyle(.white)
Text(createdAt.formatted(date: .abbreviated, time: .omitted))
Spacer()
}
.padding(.vertical, 10)
.padding(.horizontal, 12)
.background(
RoundedRectangle(cornerRadius: 12)
.fill(.blue)
)
HStack(spacing: 8) {
Image(systemName: "calendar")
.foregroundStyle(.white)
Text(createdAt.formatted(date: .abbreviated, time: .omitted))
.foregroundStyle(.white)
Spacer()
}
.padding(.vertical, 10)
.padding(.horizontal, 12)
.background(
RoundedRectangle(cornerRadius: 12)
.fill(.blue)
)

Text(
completedAt?
.formatted(date: .abbreviated, time: .omitted)
?? "완료하지 않음"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

뷰 내부에 "완료하지 않음"과 같은 문자열이 하드코딩되어 있습니다. 이러한 문자열은 Localizable.xcstrings 파일에 추가하여 지역화(Localization)를 지원하도록 하는 것이 좋습니다.

또한, Localizable.xcstrings에는 "완료 시점"으로 추가되었지만, 뷰에서는 "완료일"(63행)을 사용하고 있어 불일치가 발생합니다. 일관성을 위해 Localizable.xcstrings에 정의된 키를 사용해주세요. "마감일 없음"(49행) 문자열도 마찬가지로 지역화가 필요합니다.

Suggested change
?? "완료하지 않음"
?? String(localized: "완료하지 않음")

@opficdev opficdev merged commit e77e6bf into develop Mar 3, 2026
1 check passed
@opficdev opficdev deleted the feat/#162-TodoDetailContentView-createdAt branch March 3, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

TodoDetailContentView에 생성일을 볼 수 있도록 추가한다

1 participant